<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    const p = new Promise((resolve,reject)=>{
		setTimeout(()=>{
			reject(100)
        })
    });
	p.then(undefined,reason=>{
		console.log("失败回调",reason);
    })
    p.catch(function(reason){
		console.log("catch->失败回调",reason)
    })
</script>
</html>